﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;

namespace Bouyei.Geo.GeoParsers.Parser
{
    using Bouyei.Geo.GeoParsers.Vct;

    public class VctParser 
    {
        private Encoding encoding = Encoding.UTF8;
        public VctParser(Encoding encoding)
        {
            this.encoding = encoding;
        }

       public VctInfo FromReader(string vctFile)
        {
            using(VctReader reader=new VctReader(vctFile,encoding))
            {
                return reader.Reader();
            }
        }
    }
}
